/** 该文件仅存放搜索模块相关的接口API */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from '../BaseUrl' 
const {BMDURL} = BASEURL

const searchApi = {
  /**
   * 新增搜索词
   * @param {Object}} params  {title}
   */
  searchWordAdd(params){
    return myaxios.post(BMDURL+"/v1/search/add", params)
  },

  /**
   * 查询所有历史搜索关键词
   * @param {Object}} params  {}
   */
  searchWordAll(params){
    return myaxios.get(BMDURL+"/v1/search/all", params)
  },

  /**
   * 通过id删除关键词
   * @param {Object}} params  {id}
   */
  searchWordDelete(params){
    return myaxios.post(BMDURL+"/v1/search/delete", params)
  },

}

export default searchApi;